<div id="side_search_1">
</div>
<div id="side_search_3">
<div class="title">Search<%= link_to("advanced", {:controller => 'history', :action => 'search'})%></div>
</div>
<div id="side_search_2">
	<div class="absolute">
		<form id="search_input" action="/history/search" method="post">
		<%= text_field 'search', 'input', :autocomplete => 'off', :onblur => 'clearSearch()' -%>
		</form>
		<%= observe_form :search_input, :frequency => 0.5,
		     :update => 'ajax_search_results',
		     :url => { :controller => 'history', :action => 'ajax_search' } -%>
<script type="text/javascript">
//<![CDATA[
clearSearch = function() {Form.reset($("search_input"));}
//]]>
</script>
		<div id="ajax_search_results"></div>
	</div>
</div>